package designMode.Singleton;

/**
 * Created by 小星打屁屁 on 2015/4/9.
 * contact me ==>243709758@qq.com
 */
public class Singleton01 {
    private Singleton01(){}; //定义一个私有的构造方法

    private static Singleton01 instance = new Singleton01();//创建一个私有的自身实例

    public static Singleton01 getInstance() {
        return instance;
    }
}
